/**
 * Copyright &copy; 2015-2020 <a href="http://www.easyhis.com/">easyhis</a> All rights reserved.
 */
package com.easy.dfcapi.entity;

import com.easy.modules.sys.entity.Area;
import javax.validation.constraints.NotNull;

import com.easy.core.persistence.DataEntity;
import com.easy.common.utils.excel.annotation.ExcelField;

/**
 * 归属地Entity
 * @author waylen chi
 * @version 2018-01-17
 */
public class ApiLegalArea extends DataEntity<ApiLegalArea> {
	
	private static final long serialVersionUID = 1L;
	private Area a;		// area_id
	private String areaName;		// area_name
	
	public ApiLegalArea() {
		super();
	}


	@NotNull(message="area_id不能为空")
	@ExcelField(title="area_id", fieldType=Area.class, value="a.areaName", align=2, sort=0)
	public Area getA() {
		return a;
	}

	public void setA(Area a) {
		this.a = a;
	}
	
	@ExcelField(title="area_name", align=2, sort=1)
	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}
	
}